import request from "@/utils/request";

// 查询售后订单列表
export function listBizRefundOrder(query) {
  return request({
    url: "/biz/bizRefundOrder/list",
    method: "get",
    params: query
  });
}

// 查询售后订单详细
export function getBizRefundOrder(id) {
  return request({
    url: "/biz/bizRefundOrder/" + id,
    method: "get"
  });
}

// 新增售后订单
export function addBizRefundOrder(data) {
  return request({
    url: "/biz/bizRefundOrder",
    method: "post",
    data: data
  });
}

// 修改售后订单
export function updateBizRefundOrder(data) {
  return request({
    url: "/biz/bizRefundOrder",
    method: "put",
    data: data
  });
}

// 删除售后订单
export function delBizRefundOrder(id) {
  return request({
    url: "/biz/bizRefundOrder/" + id,
    method: "delete"
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizRefundOrder/findMaxSort",
    method: "get"
  });
}
// 导出售后订单
export function exportBizRefundOrder(query) {
  return request({
    url: "/biz/bizRefundOrder/export",
    method: "get",
    params: query
  });
}
// 退款

export function wxRefunds(data) {
  return request({
    url: "/biz/bizRefundOrder/wxRefunds",
    method: "post",
    data: data
  });
}
